<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .nav{
            background-color: antiquewhite;
            width: 500px;
            height: 30px;
            margin: 20px auto;
        }
        .item{
            width: 125px;
            float: left;
            line-height: 30px;
            text-align: center;
        }
        #hidde{visibility: hidden;}
    </style>
</head>
<body>
    <div class="nav">
    <div class="item">首页</div>
    <div class="item">个人主页</div>
    <div class="item">设置</div>
    <div class="item" id="hidde">隐藏内容</div>
</div>
</body>
</html>
<script>
    var hidde1=document.getElementById('hidde')
    console.log(hidde1.textContent);
    console.log(hidde1.innerText);
    hidde1.textContent='特定时刻显示';
    console.log(hidde1.textContent);
</script>